﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using UI.Web.MVC.Code.Common;
using UI.Web.MVC.Code.Helpers.Home;
using UI.Web.MVC.Models.Home;

namespace UI.Web.MVC.Controllers
{
    public class HomeController : BaseController
    {
        [HttpGet]
        public ActionResult Index(string product)
        {
            HomeHelpers helpers = new HomeHelpers(product);
            return View(helpers.IndexGet());
        }

        [HttpPost]
        public ActionResult Index(CreateHomeModel model)
        {
            HomeHelpers helpers = new HomeHelpers(SystemProduct);
            helpers.IndexPost(model);
            return View();
        }

    }
}
